<?
/*
 * Debugging
 */
error_reporting(-1);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

/*
 * Basic Configuration
 */
$path = dirname(__FILE__) . '/';

/*
 * Controller
 */
require_once($path."controller/class.mysql.php");
require_once($path."controller/controller.organisation.php");
require_once($path."controller/controller.rank.php");
require_once($path."controller/controller.character.php");
require_once($path."controller/controller.upload.php");
require_once($path."controller/controller.race.php");
require_once($path."controller/controller.class.php");
require_once($path."controller/controller.profession.php");

/*
 * Model
 */
require_once($path."model/model.character.php");
require_once($path."model/model.character.player.php");
require_once($path."model/model.character.nsc.php");
require_once($path."model/model.organisation.php");
require_once($path."model/model.rank.php");
require_once($path."model/model.race.php");
require_once($path."model/model.class.php");
require_once($path."model/model.profession.php");

/*
 * Libaries
 */
require_once($path."lib/tools.php");

/*
 * DB Configuration
 */
$config["database"]["user"] = "vdl";
$config["database"]["password"] = "";
$config["database"]["database"] = "vdl_roleplay";
$config["database"]["host"] = "localhost";

/*
 * DB Initialising
 */
MySql::connect($config["database"]["host"],$config["database"]["user"],$config["database"]["password"]);
MySql::select_db($config["database"]["database"]);
MySql::query("SET NAMES utf-8");
?>